﻿<ResourceDictionary    
    x:Uid="ResourceDictionary_1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:sys="clr-namespace:System;assembly=mscorlib"
    xmlns:ad="clr-namespace:AvalonDock;assembly=AvalonDock"
    xmlns:adRes="clr-namespace:AvalonDock.Properties;assembly=AvalonDock"        
    >

    <!--DockingManager-->
    <Style x:Uid="Style_1" x:Key="{x:Type ad:DockingManager}" TargetType="{x:Type ad:DockingManager}">
        <Setter x:Uid="Setter_1" Property="Background" Value="{DynamicResource NormalBackgroundBrush}"/>
        <Setter x:Uid="Setter_2" Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter x:Uid="Setter_3" Property="Template">
            <Setter.Value>
                <ControlTemplate x:Uid="ControlTemplate_1" TargetType="{x:Type ad:DockingManager}">
                    <Grid
                        x:Uid="Grid_1" Background="{TemplateBinding Background}"
                        >
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition x:Uid="ColumnDefinition_1" Width="Auto"/>
                            <ColumnDefinition x:Uid="ColumnDefinition_2"/>
                            <ColumnDefinition x:Uid="ColumnDefinition_3" Width="Auto"/>
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition x:Uid="RowDefinition_1" Height="Auto"/>
                            <RowDefinition x:Uid="RowDefinition_2"/>
                            <RowDefinition x:Uid="RowDefinition_3" Height="Auto"/>
                        </Grid.RowDefinitions>
                        <StackPanel x:Uid="PART_LeftAnchorTabPanel" Name="PART_LeftAnchorTabPanel" 
                                Grid.Column="0" Grid.Row="1" Orientation="Vertical">
                            <StackPanel.Resources>
                                <Style x:Uid="Style_2" TargetType="{x:Type ad:DockablePaneAnchorTabGroup}">
                                    <Setter x:Uid="Setter_4" Property="LayoutTransform">
                                        <Setter.Value >
                                            <RotateTransform x:Uid="RotateTransform_1" Angle="90"/>
                                        </Setter.Value>
                                    </Setter>
                                    <Setter x:Uid="Setter_5" Property="Margin" Value="0,2,2,0"/>
                                </Style>
                                <Style x:Uid="Style_3" TargetType="Border">
                                    <Setter x:Uid="Setter_6" Property="CornerRadius" Value="0,0,3,3"/>
                                </Style>
                            </StackPanel.Resources>
                        </StackPanel>
                        <StackPanel x:Uid="PART_RightAnchorTabPanel" Name="PART_RightAnchorTabPanel" Grid.Column="2" Grid.Row="1"  Orientation="Vertical">
                            <StackPanel.Resources>
                                <Style x:Uid="Style_4" TargetType="{x:Type ad:DockablePaneAnchorTabGroup}">
                                    <Setter x:Uid="Setter_7" Property="LayoutTransform">
                                        <Setter.Value >
                                            <RotateTransform x:Uid="RotateTransform_2" Angle="90"/>
                                        </Setter.Value>
                                    </Setter>
                                    <Setter x:Uid="Setter_8" Property="Margin" Value="2,2,0,0"/>
                                </Style>
                                <Style x:Uid="Style_5" TargetType="Border">
                                    <Setter x:Uid="Setter_9" Property="CornerRadius" Value="3,3,0,0"/>
                                </Style>
                            </StackPanel.Resources>
                        </StackPanel>
                        <StackPanel x:Uid="PART_TopAnchorTabPanel" Name="PART_TopAnchorTabPanel" Grid.Column="1" Grid.Row="0" Orientation="Horizontal"/>
                        <StackPanel x:Uid="PART_BottomAnchorTabPanel" Name="PART_BottomAnchorTabPanel" Grid.Column="1" Grid.Row="2" Orientation="Horizontal"/>
                        <Border 
                            x:Uid="PART_InternalContainer" x:Name="PART_InternalContainer"
                            Background="{TemplateBinding Background}"
                            Grid.Column="1" Grid.Row="1"
                            Padding="4">
                            <ContentPresenter x:Uid="ContentPresenter_1" />
                        </Border>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!--DockableContentTabItemStyle-->
    <Style x:Uid="Style_6" x:Key="DockableContentTabItemStyle" TargetType="{x:Type ad:DockableContent}">
        <Setter x:Uid="Setter_10" Property="Template">
            <Setter.Value>
                <ControlTemplate x:Uid="ControlTemplate_2" TargetType="{x:Type ad:DockableContent}">
                    <Grid x:Uid="Grid_2" SnapsToDevicePixels="True">
                        <Border 
						    x:Uid="PART_DragArea" x:Name="PART_DragArea" 
						    BorderBrush="{DynamicResource NormalBorderBrush}" 
						    BorderThickness="1,0,1,1" 
                            Margin="0,0,0,0"
                            Background="{DynamicResource NormalBackgroundBrush}"   
                            CornerRadius="0,0,2,2"
                            Padding="1"
                            >
                            <Grid x:Uid="Grid_3" Margin="4,0,4,0">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition x:Uid="ColumnDefinition_4" Width="Auto"/>
                                    <ColumnDefinition x:Uid="ColumnDefinition_5" Width="*"/>
                                </Grid.ColumnDefinitions>
                                <ad:ImageEx x:Uid="Icon" x:Name="Icon" Width="16" Source="{TemplateBinding Icon}" />

                                <!--<ad:AlignedImage>
                                    <ContentPresenter x:Name="Icon"
                                                    Margin="1"
													ContentSource="Icon"
													SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
                                </ad:AlignedImage>-->
                                <TextBlock 
								        x:Uid="tabItemTitle" x:Name="tabItemTitle"
                                        Grid.Column="1"
								        TextTrimming="CharacterEllipsis" TextWrapping="NoWrap"
								        Text="{TemplateBinding Title}" 
								        Margin="2,0,0,0" VerticalAlignment="Center"
								        Foreground="{DynamicResource NormalForegroundBrush}"/>
                            </Grid>
                        </Border>
                    </Grid>

                    <ControlTemplate.Triggers>
                        <Trigger x:Uid="Trigger_1" Property="Selector.IsSelected"
								 Value="true">
                            <Setter x:Uid="Setter_11" Property="BorderBrush"
									Value="{DynamicResource SelectedBorderBrush}" TargetName="PART_DragArea"/>
                            <Setter x:Uid="Setter_12" Property="Background"
									Value="{DynamicResource SelectedBackgroundBrush}" TargetName="PART_DragArea"/>
                            <Setter x:Uid="Setter_13" Property="Foreground"
									Value="{DynamicResource NormalForegroundBrush}" TargetName="tabItemTitle"/>
                            <Setter x:Uid="Setter_14" Property="Panel.ZIndex" 
                                    Value="100" />
                        </Trigger>
                        <MultiTrigger x:Uid="MultiTrigger_1">
                            <MultiTrigger.Conditions>
                                <Condition x:Uid="Condition_1" Property="IsMouseOver" Value="true"/>
                                <Condition x:Uid="Condition_2" Property="Selector.IsSelected" Value="false"/>
                            </MultiTrigger.Conditions>
                            <Setter x:Uid="Setter_15" Property="BorderBrush" Value="{DynamicResource HoverBorderBrush}" 
                                    TargetName="PART_DragArea" />
                            <Setter x:Uid="Setter_16" Property="Background" Value="{DynamicResource HoverBackgroundBrush}" 
                                    TargetName="PART_DragArea" />
                            <Setter x:Uid="Setter_17" Property="Panel.ZIndex" Value="99" />
                        </MultiTrigger>
                        <Trigger x:Uid="Trigger_2" Property="IsEnabled" Value="false">
                            <Setter x:Uid="Setter_18" Property="BorderBrush" Value="{DynamicResource DisabledBorderBrush}"
                                    TargetName="PART_DragArea" />
                            <Setter x:Uid="Setter_19" Property="Background" Value="{DynamicResource DisabledBackgroundBrush}"
                                    TargetName="PART_DragArea" />
                            <Setter x:Uid="Setter_20" Property="Foreground" Value="{DynamicResource DisabledForegroundBrush}"
                                    TargetName="tabItemTitle" />
                            <Setter x:Uid="Setter_21" TargetName="Icon" Property="IsEnabled" Value="false" />
                        </Trigger>
                        <Trigger x:Uid="Trigger_3" Property="Icon" Value="{x:Null}">
                            <Setter x:Uid="Setter_22" TargetName="Icon" Property="Visibility" Value="Collapsed"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!--DockablePane -->
    <Style x:Uid="Style_7" x:Key="{x:Type ad:DockablePane}" TargetType="{x:Type ad:DockablePane}">
        <Setter x:Uid="Setter_23" Property="Background" Value="{DynamicResource NormalBackgroundBrush}"/>
        <Setter x:Uid="Setter_24" Property="Template">
            <Setter.Value>
                <ControlTemplate x:Uid="ControlTemplate_3" TargetType="{x:Type ad:DockablePane}">
                    <Border
                            x:Uid="Border_1" Focusable="False"
                            Background="{TemplateBinding Background}"
                            >
                        <Grid x:Uid="Grid_4" FocusManager.FocusedElement="{Binding ElementName=PART_SelectedContent}">
                            <Grid.RowDefinitions>
                                <RowDefinition x:Uid="RowDefinition_4" Height="Auto"/>
                                <RowDefinition x:Uid="RowDefinition_5" Height="*"/>
                                <RowDefinition x:Uid="RowDefinition_6" Height="Auto"/>
                            </Grid.RowDefinitions>
                            <Border x:Uid="PART_Header" x:Name="PART_Header" 
							        Grid.Row="0" Focusable="False" 
							        Background="{DynamicResource NormalBackgroundBrush}"
                                    CornerRadius="2,2,0,0"
                                    Height="18">
                                <DockPanel x:Uid="DockPanel_1" LastChildFill="True">
                                    <Button x:Uid="btnClose" x:Name="btnClose" DockPanel.Dock="Right" Style="{DynamicResource PaneHeaderCommandStyle}"
                                            Command="ad:ManagedContentCommands.Close" 
                                            ToolTip="{x:Static adRes:Resources.DockablePaneCommands_Close}"
                                            CommandTarget="{TemplateBinding SelectedItem}"
                                                Width="15" Height="15" Margin="2,0,2,0" VerticalAlignment="Center" Opacity="0.6">
                                        <Image x:Uid="Image_1" Source="pack://application:,,,/AvalonDock;component/resources/Images/PinClose.png" Width="13" Height="13" Stretch="None"/>
                                    </Button>
                                    <Button x:Uid="btnPinAutoHide" x:Name="btnPinAutoHide" 
                                            ToolTip="{x:Static adRes:Resources.DockablePaneCommands_ToggleAutoHide}"
                                            DockPanel.Dock="Right" Style="{DynamicResource PaneHeaderCommandStyle}" Command="ad:DockablePaneCommands.ToggleAutoHide"
                                                Width="15" Height="15" VerticalAlignment="Center" Opacity="0.6">
                                        <Image x:Uid="Image_2" Source="pack://application:,,,/AvalonDock;component/resources/Images/PinAutoHide.png" Width="13" Height="13" Stretch="None"/>
                                    </Button>
                                    <Border x:Uid="PART_ShowContextMenuButton" x:Name="PART_ShowContextMenuButton" DockPanel.Dock="Right" 
                                            ToolTip="{x:Static adRes:Resources.DockablePane_ShowOptionsMenu}"
                                            Style="{DynamicResource PaneHeaderContextMenuCommandStyle}"
                                            Width="15"
                                            Height="15" 
                                            VerticalAlignment="Center" 
                                            Opacity="0.6">
                                        
                                        <Image x:Uid="Image_3" Source="pack://application:,,,/AvalonDock;component/resources/Images/PinMenu.png" Width="13" Height="13" Stretch="None"/>
                                    </Border>
                                    <TextBlock 
									        x:Uid="paneTitle" Text="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=SelectedItem.Title}" 
									        x:Name="paneTitle"
									        Grid.Row="0" 
									        Margin="2,0,0,0" TextTrimming="CharacterEllipsis" TextWrapping="NoWrap"
                                            VerticalAlignment="Center"
									        Foreground="{DynamicResource NormalForegroundBrush}"/>
                                </DockPanel>
                            </Border>
                            <Border x:Uid="Border_2" Grid.Row="1" Background="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=SelectedItem.Background}"   
                                    >
                                <ContentPresenter 
                                        x:Uid="PART_SelectedContent" x:Name="PART_SelectedContent"
                                        Content="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=SelectedItem.Content}"
								        KeyboardNavigation.TabNavigation="Local"
								        KeyboardNavigation.DirectionalNavigation="Contained"
								        KeyboardNavigation.TabIndex="1"
                                        />
                            </Border>
                            <Border x:Uid="PART_Tabs" x:Name="PART_Tabs"
                                        Grid.Row="2" 
								        Height ="23" 
								        BorderThickness="0,1,0,0" 
                                        BorderBrush="{DynamicResource SelectedBackgroundBrush}"
								        >
                                <ad:DockableTabPanel							
                                            x:Uid="ad:DockableTabPanel_1" IsItemsHost="True" 
                                            TabItemStyle="{DynamicResource DockableContentTabItemStyle}"/>
                            </Border>
                        </Grid>
                    </Border>
                    <ControlTemplate.Triggers>
                        <DataTrigger x:Uid="DataTrigger_1" Binding="{Binding RelativeSource={RelativeSource Self}, Path=SelectedItem.IsActiveContent}" Value="True" >
                            <Setter x:Uid="Setter_25" Property="Background" Value="{DynamicResource SelectedBackgroundBrush}" TargetName="PART_Header"/>
                            <Setter x:Uid="Setter_26" Property="Foreground" Value="{DynamicResource SelectedForegroundBrush}" TargetName="paneTitle"/>
                        </DataTrigger>
                        <Trigger x:Uid="Trigger_4" Property ="ShowHeader" Value="False">
                            <Setter x:Uid="Setter_27" Property="Visibility" Value="Collapsed" TargetName="PART_Header"/>
                        </Trigger>
                        <Trigger x:Uid="Trigger_5" Property ="ShowTabs" Value="False">
                            <Setter x:Uid="Setter_28" Property="Visibility" Value="Collapsed" TargetName="PART_Tabs"/>
                        </Trigger>
                        <Trigger x:Uid="Trigger_6" Property ="HasSingleItem" Value="True">
                            <Setter x:Uid="Setter_29" Property="Visibility" Value="Collapsed" TargetName="PART_Tabs"/>
                        </Trigger>
                        <DataTrigger x:Uid="DataTrigger_2" Binding="{Binding RelativeSource={RelativeSource Self},  Path=SelectedItem.IsCloseable}" Value="false">
                            <Setter x:Uid="Setter_30" Property="Visibility" TargetName="btnClose" Value="Collapsed"/>
                        </DataTrigger>                        
                        <DataTrigger x:Uid="DataTrigger_3" Binding="{Binding RelativeSource={RelativeSource Self},  Path=SelectedItem.State}" Value="AutoHide">
                            <Setter x:Uid="Setter_31" Property="LayoutTransform" TargetName="btnPinAutoHide">
                                <Setter.Value>
                                    <RotateTransform x:Uid="RotateTransform_3" Angle="90"/>
                                </Setter.Value>
                            </Setter>
                        </DataTrigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- FloatingDockablePane -->
    <Style x:Uid="Style_8" x:Key="{x:Type ad:FloatingDockablePane}" TargetType="{x:Type ad:FloatingDockablePane}" BasedOn="{StaticResource {x:Type ad:DockablePane}}">

    </Style>

    <!--DocumentTabItemStyle-->
    <Style x:Uid="Style_9" x:Key="DocumentTabItemStyle" TargetType="{x:Type ad:ManagedContent}">
        <Setter x:Uid="Setter_32" Property="Template">
            <Setter.Value>
                <ControlTemplate x:Uid="ControlTemplate_4" TargetType="{x:Type ad:ManagedContent}">
                    <Border x:Uid="tabItemIntBorder" x:Name="tabItemIntBorder"
                            Grid.Column="1"
                            BorderThickness="1,1,1,0"
                            Padding="5,0,5,4"
                            Margin="-1,0,0,-4"
                            CornerRadius="2,2,0,0"
                            Background="Transparent">
                        <StackPanel x:Uid="StackPanel_1" x:Name="PART_DragArea" 
                                    Orientation="Horizontal" 
                                    Background="Transparent"
                                    >
                            <!--This image with width=0 is required to connect the icon visual to the presentation source,
                                without this navigatorwindow won't work-->
                            <Image x:Uid="Image_4" Source="{TemplateBinding Icon}" Width="0"/>
                            <TextBlock 
							        x:Uid="TextBlock_1" x:Name="tabItemTitle" 
							        TextTrimming="CharacterEllipsis" 
                                    TextWrapping="NoWrap"
							        Text="{TemplateBinding Title}" 
							        Foreground="{DynamicResource NormalForegroundBrush}"/>
                            <ad:ImageEx x:Uid="PART_LockedIcon" x:Name="PART_LockedIcon" Margin="2,0,0,0" Visibility="Collapsed" VerticalAlignment="Center" HorizontalAlignment="Center" Source="pack://application:,,,/AvalonDock;component/resources/Images/Locked.png" Width="6" />
                            <Button x:Uid="PART_CloseButton" x:Name="PART_CloseButton" Visibility="Hidden" Margin="6,2,2,2" 
                                    Style="{DynamicResource PaneHeaderCommandStyle}" 
                                    ToolTip="{x:Static adRes:Resources.ManagedContentCommands_Close}"
                                    Command="ad:ManagedContentCommands.Close" Opacity="0.8">
                                <ad:ImageEx x:Uid="ad:ImageEx_1" Source="pack://application:,,,/AvalonDock;component/resources/Images/PinClose.png" VerticalAlignment="Center" HorizontalAlignment="Center" Width="13" />
                            </Button>    

                        </StackPanel>
                    </Border>

                    <ControlTemplate.Triggers>
                        <Trigger x:Uid="Trigger_7" Property="Selector.IsSelected" Value="True">
                            <Setter x:Uid="Setter_33" Property="Background" 
                                    TargetName="tabItemIntBorder" 
                                    Value="{DynamicResource SelectedBackgroundBrush}"
                                    />
                            <Setter x:Uid="Setter_34" Property="Visibility"
                                    TargetName="PART_CloseButton"
                                    Value="Visible"/>                            
                        </Trigger>

                        <MultiTrigger x:Uid="MultiTrigger_2">
                            <MultiTrigger.Conditions>
                                <Condition x:Uid="Condition_3" Property="IsActiveDocument" Value="True"/>
                                <Condition x:Uid="Condition_4" Property="IsActiveContent" Value="True"/>
                            </MultiTrigger.Conditions>
                            
                            <Setter x:Uid="Setter_35" Property="Background" 
                                    TargetName="tabItemIntBorder" 
                                    Value="{DynamicResource SelectedBackgroundBrush}"
                                    />
                            <Setter x:Uid="Setter_36" Property="TextBlock.Foreground" TargetName="tabItemTitle"
                                    Value="{DynamicResource SelectedForegroundBrush}"/>  
                        </MultiTrigger>

                        <MultiTrigger x:Uid="MultiTrigger_3">
                            <MultiTrigger.Conditions>
                                <Condition x:Uid="Condition_5" Property="IsActiveDocument" Value="True"/>
                                <Condition x:Uid="Condition_6" Property="IsActiveContent" Value="False"/>
                            </MultiTrigger.Conditions>

                            <Setter x:Uid="Setter_37" Property="Background" 
                                    TargetName="tabItemIntBorder" 
                                    Value="{DynamicResource SelectedBackgroundBrush}"
                                    />
                            <Setter x:Uid="Setter_38" Property="TextBlock.Foreground" TargetName="tabItemTitle" 
                                    Value="{DynamicResource SelectedForegroundBrush}"/>
                        </MultiTrigger>
                        
                        <MultiTrigger x:Uid="MultiTrigger_4">
                            <MultiTrigger.Conditions>
                                <Condition x:Uid="Condition_7" Property="IsMouseOver" SourceName="tabItemIntBorder" Value="True"/>
                                <Condition x:Uid="Condition_8" Property="Selector.IsSelected" Value="False"/>
                            </MultiTrigger.Conditions>
                            <Setter x:Uid="Setter_39" Property="Background" 
                                    TargetName="tabItemIntBorder" 
                                    Value="{DynamicResource HoverBackgroundBrush}"
                                    />
                            <Setter x:Uid="Setter_40" Property="BorderBrush" 
                                    TargetName="tabItemIntBorder" 
                                    Value="{DynamicResource HoverBorderBrush}"
                                    />
                            <Setter x:Uid="Setter_41" Property="Visibility"
                                    TargetName="PART_CloseButton"
                                    Value="Visible"/>
                        </MultiTrigger>
                        <Trigger x:Uid="Trigger_8" Property="IsLocked" Value="True">
                            <Setter x:Uid="Setter_42" Property="Visibility" Value="Visible" TargetName="PART_LockedIcon"/>
                        </Trigger>
                        <!--<DataTrigger Binding="{Binding Path=IsLocked, RelativeSource={RelativeSource Self}}" Value="True">
                            <Setter Property="Visibility" Value="Visible" TargetName="PART_LockedIcon"/>
                        </DataTrigger>-->
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!--DocumentPane-->
    <Style x:Uid="Style_10" x:Key="{x:Type ad:DocumentPane}" TargetType="{x:Type ad:DocumentPane}">
        <Setter x:Uid="Setter_43" Property="Background" Value="{DynamicResource NormalBackgroundBrush}"/>
        <Setter x:Uid="Setter_44" Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter x:Uid="Setter_45" Property="Template">
            <Setter.Value>
                <ControlTemplate x:Uid="ControlTemplate_5" TargetType="{x:Type ad:DocumentPane}" >
                    <ControlTemplate.Resources>
                        <ContextMenu x:Uid="ContextMenu_1" x:Key="DocumentsListMenu" StaysOpen="True"  />
                    </ControlTemplate.Resources>
                    <Border 
                        x:Uid="Border_3" Background="{TemplateBinding Background}">
                        <Grid x:Uid="Grid_5">
                            <Grid.RowDefinitions>
                                <RowDefinition x:Uid="RowDefinition_7" Height="Auto"/>
                                <RowDefinition x:Uid="RowDefinition_8" Height="*"/>
                            </Grid.RowDefinitions>
                            <Border x:Uid="Border_4" x:Name="PART_Header" 
							    Grid.Row="0" 
							    Focusable="False" 
                                >
                                <Grid x:Uid="Grid_6">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition x:Uid="ColumnDefinition_6" Width="*"/>
                                        <ColumnDefinition x:Uid="ColumnDefinition_7" Width="18"/>                                           
                                    </Grid.ColumnDefinitions>
                                    <ad:DocumentTabPanel 
                                      x:Uid="paneTabsPanel" x:Name="paneTabsPanel" 
                                      Panel.ZIndex ="1" 
                                      IsItemsHost="True" 
								      TabItemStyle="{StaticResource DocumentTabItemStyle}"/>
                                    <Button x:Uid="Button_1" x:Name="PART_ShowContextMenuButton" 
                                            Grid.Column="1"
                                            Width="15" Height="15" 
                                            Style="{DynamicResource PaneHeaderCommandStyle}">
                                        <Image x:Uid="ShowContextMenuIcon" x:Name="ShowContextMenuIcon" Source="pack://application:,,,/AvalonDock;component/resources/Images/PinMenu.png" Width="13" Height="13" Stretch="None"/>
                                    </Button>                                    
                                </Grid>
                            </Border>
                            <Grid x:Uid="Grid_7" Grid.Row="1">
                                <Border 
                                    x:Uid="topBorder" x:Name="topBorder"
                                    Height="4"
                                    Background="{DynamicResource NormalBorderBrush}" 
                                    CornerRadius="2,2,0,0" 
                                    VerticalAlignment="Top"
                                    HorizontalAlignment="Stretch"
                                    >
                                </Border>
                                <Border
                                    x:Uid="bottomBorder" x:Name="bottomBorder"
                                    Height="4"
                                    Background="{DynamicResource NormalBorderBrush}" 
                                    CornerRadius="0,0,2,2" 
                                    VerticalAlignment="Bottom"
                                    HorizontalAlignment="Stretch"
                                    >
                                </Border>
                                <ContentPresenter 
                                        x:Uid="ContentPresenter_2" Content="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=SelectedItem.Content}"
                                        Margin="0,4,0,4"
								        KeyboardNavigation.TabNavigation="Local"
								        KeyboardNavigation.DirectionalNavigation="Contained"
								        KeyboardNavigation.TabIndex="1"
                                        />                                
                            </Grid>
                        </Grid>
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger x:Uid="Trigger_9" Property="HasItems" Value="False">
                            <Setter x:Uid="Setter_46" Property="Visibility" Value="Hidden"/>
                        </Trigger>
                        <Trigger x:Uid="Trigger_10" Property="ShowHeader" Value="False">
                            <Setter x:Uid="Setter_47" Property="Visibility" Value="Collapsed" TargetName="PART_Header" />
                        </Trigger>
                        <DataTrigger x:Uid="DataTrigger_4" Binding="{Binding Path=IsMainDocumentPane, RelativeSource={RelativeSource Self}}" Value="True">
                            <Setter x:Uid="Setter_48" Property="Source" Value="pack://application:,,,/AvalonDock;component/resources/Images\PinDocMenu.png" TargetName="ShowContextMenuIcon"/>
                        </DataTrigger>

                        <Trigger x:Uid="Trigger_11" Property="ContainsActiveDocument" Value="True">
                            <Setter x:Uid="Setter_49" Property="Background" 
                                    Value="{DynamicResource SelectedBorderBrush}" 
                                    TargetName="topBorder"/>
                            <Setter x:Uid="Setter_50" Property="Background" 
                                    Value="{DynamicResource SelectedBackgroundBrush}" 
                                    TargetName="bottomBorder"/>
                        </Trigger>
                        
                        <Trigger x:Uid="Trigger_12" Property="ContainsActiveContent" Value="True">
                            <Setter x:Uid="Setter_51" Property="Background" 
                                    Value="{DynamicResource SelectedBorderBrush}" 
                                    TargetName="topBorder"/>
                            <Setter x:Uid="Setter_52" Property="Background" 
                                    Value="{DynamicResource SelectedBackgroundBrush}" 
                                    TargetName="bottomBorder"/>
                        </Trigger>
                        
                        <EventTrigger x:Uid="EventTrigger_1" RoutedEvent="Window.Loaded">
                            <BeginStoryboard x:Uid="BeginStoryboard_1">
                                <Storyboard x:Uid="Storyboard_1">
                                    <DoubleAnimation
                                        x:Uid="DoubleAnimation_1" Storyboard.TargetProperty="Opacity"
                                        From="0" To="1"  Duration="0:0:0.200" />
                                </Storyboard>
                            </BeginStoryboard>
                        </EventTrigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!--DockablePaneAnchorTab-->
    <Style x:Uid="Style_11" x:Key="{x:Type ad:DockablePaneAnchorTab}" TargetType="{x:Type ad:DockablePaneAnchorTab}">
        <Setter x:Uid="Setter_53" Property="Template">
            <Setter.Value>
                <ControlTemplate x:Uid="ControlTemplate_6" TargetType="{x:Type ad:DockablePaneAnchorTab}">
                    <Grid x:Uid="Grid_8">
                        <Border 
                            x:Uid="PART_Border" Name="PART_Border" 
                            Background="{DynamicResource NormalBackgroundBrush}"
                            TextBlock.Foreground="{DynamicResource NormalForegroundBrush}"
                            Padding="4,0,4,0">
                            <Grid x:Uid="Grid_9">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition x:Uid="ColumnDefinition_8" Width="Auto"/>
                                    <ColumnDefinition x:Uid="ColumnDefinition_9" Width="*"/>
                                </Grid.ColumnDefinitions>
                                <ad:ImageEx x:Uid="borderIcon" x:Name="borderIcon" Width="16" Source="{TemplateBinding Icon}" />
                                <TextBlock 
                                    x:Uid="TextBlock_2" Grid.Column="1"
                                    Text="{TemplateBinding Title}"  
                                    Margin="4,2,2,2"/>
                            </Grid>
                        </Border>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger 
                            x:Uid="Trigger_13" Property="Icon"
                            Value="{x:Null}">
                            <Setter x:Uid="Setter_54" TargetName="borderIcon" Property="Visibility" Value="Collapsed"/>
                        </Trigger>

                        <Trigger x:Uid="Trigger_14" Property="Anchor" >
                            <Trigger.Value>
                                <ad:AnchorStyle x:Uid="ad:AnchorStyle_1">
                                    Left
                                </ad:AnchorStyle>
                            </Trigger.Value>
                            <Setter x:Uid="Setter_55" TargetName="PART_Border" Property="BorderThickness" Value="1,1,1,0"/>
                            <Setter x:Uid="Setter_56" TargetName="PART_Border" Property="CornerRadius" Value="2,2,0,0"/>
                        </Trigger>
                        <Trigger x:Uid="Trigger_15" Property="Anchor"  >
                            <Trigger.Value>
                                <ad:AnchorStyle x:Uid="ad:AnchorStyle_2">
                                    Right
                                </ad:AnchorStyle>
                            </Trigger.Value>
                            <Setter x:Uid="Setter_57" TargetName="PART_Border" Property="BorderThickness" Value="1,0,1,1"/>
                            <Setter x:Uid="Setter_58" TargetName="PART_Border" Property="CornerRadius" Value="0,0,2,2"/>
                        </Trigger>
                        <Trigger x:Uid="Trigger_16" Property="Anchor"  >
                            <Trigger.Value>
                                <ad:AnchorStyle x:Uid="ad:AnchorStyle_3">
                                    Bottom
                                </ad:AnchorStyle>
                            </Trigger.Value>
                            <Setter x:Uid="Setter_59" TargetName="PART_Border" Property="BorderThickness" Value="1,1,1,0"/>
                            <Setter x:Uid="Setter_60" TargetName="PART_Border" Property="CornerRadius" Value="2,2,0,0"/>
                        </Trigger>
                        <Trigger x:Uid="Trigger_17" Property="Anchor"  >
                            <Trigger.Value>
                                <ad:AnchorStyle x:Uid="ad:AnchorStyle_4">
                                    Top
                                </ad:AnchorStyle>
                            </Trigger.Value>
                            <Setter x:Uid="Setter_61" TargetName="PART_Border" Property="BorderThickness" Value="1,0,1,1"/>
                            <Setter x:Uid="Setter_62" TargetName="PART_Border" Property="CornerRadius" Value="0,0,2,2"/>
                        </Trigger>
                        
                        
                        <Trigger x:Uid="Trigger_18" Property="IsMouseOver"
								 Value="true">
                            <Setter x:Uid="Setter_63" Property="BorderBrush" Value="{DynamicResource HoverBorderBrush}" 
                                    TargetName="PART_Border" />
                            <Setter x:Uid="Setter_64" Property="Background" Value="{DynamicResource HoverBackgroundBrush}" 
                                    TargetName="PART_Border" />
                        </Trigger>

                        <MultiTrigger x:Uid="MultiTrigger_5">
                            <MultiTrigger.Conditions>
                                <Condition x:Uid="Condition_9" Property="IsMouseOver" Value="True"/>
                                <Condition x:Uid="Condition_10" Property="Anchor" >
                                    <Condition.Value>
                                        <ad:AnchorStyle x:Uid="ad:AnchorStyle_5">
                                            Top
                                        </ad:AnchorStyle>
                                    </Condition.Value>                                    
                                </Condition>
                            </MultiTrigger.Conditions>
                            <Setter x:Uid="Setter_65" TargetName="PART_Border" Property="Background" 
                                    Value="{DynamicResource HoverBackgroundBrush}"/>
                        </MultiTrigger>
                        <MultiTrigger x:Uid="MultiTrigger_6">
                            <MultiTrigger.Conditions>
                                <Condition x:Uid="Condition_11" Property="IsMouseOver" Value="True"/>
                                <Condition x:Uid="Condition_12" Property="Anchor">
                                    <Condition.Value>
                                        <ad:AnchorStyle x:Uid="ad:AnchorStyle_6">
                                            Right
                                        </ad:AnchorStyle>
                                    </Condition.Value>
                                </Condition>
                            </MultiTrigger.Conditions>
                            <Setter x:Uid="Setter_66" TargetName="PART_Border" Property="Background" Value="{DynamicResource HoverBackgroundBrush}"/>
                        </MultiTrigger>

                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!--DockablePaneAnchorTabGroup-->
    <Style x:Uid="Style_12" x:Key="{x:Type ad:DockablePaneAnchorTabGroup}" TargetType="{x:Type ad:DockablePaneAnchorTabGroup}">
        <Setter x:Uid="Setter_67" Property="Orientation" Value="Horizontal"/>
        <Setter x:Uid="Setter_68" Property="Margin" Value="0,0,0,0"/>
    </Style>
	
    <!--OverlayWindow-->
    <Style x:Uid="Style_13" x:Key="{x:Type ad:OverlayWindow}" TargetType="{x:Type ad:OverlayWindow}">
        <Setter x:Uid="Setter_69" Property="Background" Value="Transparent"/>
        <Setter x:Uid="Setter_70" Property="Focusable" Value="False"/>
        <Setter x:Uid="Setter_71" Property="Template">
            <Setter.Value>
                <ControlTemplate x:Uid="ControlTemplate_7" TargetType="{x:Type ad:OverlayWindow}">
                    <Grid x:Uid="Grid_10" SnapsToDevicePixels="True" Opacity="0.9">
                        <Canvas x:Uid="Canvas_1">
                            <Border x:Uid="PART_SelectionBox" x:Name="PART_SelectionBox" Background="{DynamicResource Normal}" BorderBrush="Gray" BorderThickness="3" Opacity="0.2" Visibility="Hidden"/>
                        </Canvas>
                        <Grid x:Uid="panelDrag" x:Name="panelDrag">
                            <Border x:Uid="PART_btnDockRight" Name="PART_btnDockRight" 
                                    BorderBrush="{DynamicResource OverlayWindowMainBorderBrush}"
                                    BorderThickness="1"
                                    Width="35"
                                    Height="35"                                    
                                    VerticalAlignment="Center" HorizontalAlignment="Right">
                                <Grid x:Uid="Grid_11">
                                    <Border x:Uid="Border_5" Background="White" Opacity="0.3"/>
                                    <Border 
                                    x:Uid="Border_6" BorderBrush="{DynamicResource OverlayWindowIntBorderBrush}" 
                                                Background="{DynamicResource OverlayWindowIntBorderBackground}"
                                                Margin="2"
                                                BorderThickness="1" 
                                                CornerRadius="2">
                                        <Grid x:Uid="Grid_12" Margin="2">
                                            <Border 
                                            x:Uid="Border_7" Margin="10,0,0,0"
										    BorderBrush="{DynamicResource OverlayWindowIntBorderBrush2}"
										    Background="{DynamicResource OverlayWindowIntBorderBackground2}"
										    BorderThickness="1" CornerRadius="1"/>
                                            <Border 
                                            x:Uid="Border_8" Margin="10,0,0,0"
                                            VerticalAlignment="Top" Height="3" 
                                            BorderBrush="{DynamicResource OverlayWindowIntBorderBrush2}"
										    Background="{DynamicResource OverlayWindowIntBorderBrush2}" 
                                            BorderThickness="0,0,0,1"/>
                                            <Path x:Uid="Path_1" StrokeThickness="0" Margin="2,0,0,0" Fill="{DynamicResource OverlayWindowIntBorderBrush2}" VerticalAlignment="Center" HorizontalAlignment="Left" Data="M0,0 4,4 0,8 z"/>
                                        </Grid>
                                    </Border>
                                </Grid>
                            </Border>

                            <Border x:Uid="PART_btnDockLeft" Name="PART_btnDockLeft" 
                                    BorderBrush="{DynamicResource OverlayWindowMainBorderBrush}"
                                    BorderThickness="1"
                                    Width="35"
                                    Height="35"
                                    VerticalAlignment="Center" HorizontalAlignment="Left">
                                <Grid x:Uid="Grid_13">
                                    <Border x:Uid="Border_9" Background="White" Opacity="0.3"/>
                                    <Border 
                                                x:Uid="Border_10" BorderBrush="{DynamicResource OverlayWindowIntBorderBrush}" 
                                                Background="{DynamicResource OverlayWindowIntBorderBackground}"
                                                Margin="2"
                                                BorderThickness="1" 
                                                CornerRadius="2">
                                    <Grid x:Uid="Grid_14" Margin="2">
                                        <Border 
                                            x:Uid="Border_11" Margin="0,0,10,0"
										    BorderBrush="{DynamicResource OverlayWindowIntBorderBrush2}"
										    Background="{DynamicResource OverlayWindowIntBorderBackground2}"
										    BorderThickness="1" CornerRadius="1"/>
                                        <Border 
                                            x:Uid="Border_12" Margin="0,0,10,0"
                                            VerticalAlignment="Top" Height="3" 
                                            BorderBrush="{DynamicResource OverlayWindowIntBorderBrush2}"
										    Background="{DynamicResource OverlayWindowIntBorderBrush2}" 
                                            BorderThickness="0,0,0,1"/>
                                        <Path x:Uid="Path_2" StrokeThickness="0" Margin="0,0,2,0" Fill="{DynamicResource OverlayWindowIntBorderBrush2}" VerticalAlignment="Center" HorizontalAlignment="Right" Data="M0,0 -4,4 0,8 z"/>
                                    </Grid>
                                </Border>         
                                </Grid>
                            </Border>

                            <Border x:Uid="PART_btnDockTop" Name="PART_btnDockTop" 
                                    BorderBrush="{DynamicResource OverlayWindowMainBorderBrush}"
                                    BorderThickness="1"
                                    Width="35"
                                    Height="35"
                                    VerticalAlignment="Top" HorizontalAlignment="Center">
                                <Grid x:Uid="Grid_15">
                                    <Border x:Uid="Border_13" Background="White" Opacity="0.3"/>
                                    <Border 
                                                    x:Uid="Border_14" BorderBrush="{DynamicResource OverlayWindowIntBorderBrush}" 
                                                    Background="{DynamicResource OverlayWindowIntBorderBackground}"
                                                    Margin="2"
                                      
                                                    BorderThickness="1" 
                                                    CornerRadius="2">
                                        <Grid x:Uid="Grid_16" Margin="2">
                                            <Border 
                                                x:Uid="Border_15" Margin="0,0,0,10"
										        BorderBrush="{DynamicResource OverlayWindowIntBorderBrush2}"
										        Background="{DynamicResource OverlayWindowIntBorderBackground2}"
										        BorderThickness="1" CornerRadius="1"/>
                                            <Border 
                                                x:Uid="Border_16" Margin="0,0,0,10"
                                                VerticalAlignment="Top" Height="3" 
                                                BorderBrush="{DynamicResource OverlayWindowIntBorderBrush2}"
										        Background="{DynamicResource OverlayWindowIntBorderBrush2}" 
                                                BorderThickness="0,0,0,1"/>
                                            <Path x:Uid="Path_3" StrokeThickness="0" Margin="0,0,0,2" Fill="{DynamicResource OverlayWindowIntBorderBrush2}" VerticalAlignment="Bottom" HorizontalAlignment="Center" Data="M0,0 4,-4 8,0 z"/>
                                        </Grid>
                                    </Border>
                                </Grid>
                            </Border>

                            <Border x:Uid="PART_btnDockBottom" Name="PART_btnDockBottom"
                                    BorderBrush="{DynamicResource OverlayWindowMainBorderBrush}"
                                    BorderThickness="1"
                                    Width="35"
                                    Height="35"
                                    VerticalAlignment="Bottom" HorizontalAlignment="Center" >
                                <Grid x:Uid="Grid_17">
                                    <Border x:Uid="Border_17" Background="White" Opacity="0.3"/>
                                    <Border 
                                                x:Uid="Border_18" BorderBrush="{DynamicResource OverlayWindowIntBorderBrush}" 
                                                Background="{DynamicResource OverlayWindowIntBorderBackground}"
                                                Margin="2"
                                                BorderThickness="1" 
                                                CornerRadius="2">
                                    <Grid x:Uid="Grid_18" Margin="2">
                                        <Border 
                                            x:Uid="Border_19" Margin="0,10,0,0"
										    BorderBrush="{DynamicResource OverlayWindowIntBorderBrush2}"
										    Background="{DynamicResource OverlayWindowIntBorderBackground2}"
										    BorderThickness="1" CornerRadius="1"/>
                                        <Border 
                                            x:Uid="Border_20" Margin="0,10,0,0"
                                            VerticalAlignment="Top" Height="3" 
                                            BorderBrush="{DynamicResource OverlayWindowIntBorderBrush2}"
										    Background="{DynamicResource OverlayWindowIntBorderBrush2}" 
                                            BorderThickness="0,0,0,1"/>
                                        <Path x:Uid="Path_4" StrokeThickness="0" Margin="0,2,0,0" Fill="{DynamicResource OverlayWindowIntBorderBrush2}" VerticalAlignment="Top" HorizontalAlignment="Center" Data="M0,0 4,4 8,0 z"/>
                                    </Grid>
                                </Border>
                                </Grid>
                            </Border>
                        </Grid>
                        <Canvas x:Uid="Canvas_2">
                            <Grid x:Uid="PART_gridPaneRelativeDockingOptions" Name="PART_gridPaneRelativeDockingOptions" Visibility="Collapsed">
                                <Grid x:Uid="Grid_19" Width="100" Height="100" VerticalAlignment="Center" HorizontalAlignment="Center">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition x:Uid="ColumnDefinition_10"/>
                                        <ColumnDefinition x:Uid="ColumnDefinition_11"/>
                                        <ColumnDefinition x:Uid="ColumnDefinition_12"/>
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition x:Uid="RowDefinition_9"/>
                                        <RowDefinition x:Uid="RowDefinition_10"/>
                                        <RowDefinition x:Uid="RowDefinition_11"/>
                                    </Grid.RowDefinitions>
                                    <Path x:Uid="Path_5" Stretch="Fill" Grid.ColumnSpan="3" Grid.RowSpan="3" 
                                          Fill="White"
                                          Opacity="0.3"
                                          Stroke="{DynamicResource OverlayWindowMainBorderBrush}" 
                                          Data="M25,0 55,0 55,20 60,25 80,25 80,55, 60,55 55,60 55,80 25,80 25,60 20,55 0,55 0,25 20,25 25,20 z"/>
                                    <Border x:Uid="PART_btnDockPaneTop" Name="PART_btnDockPaneTop" Grid.Column="1" Grid.Row="0" 
                                            BorderBrush="{DynamicResource OverlayWindowIntBorderBrush}" 
                                            Background="{DynamicResource OverlayWindowIntBorderBackground}"
                                            Margin="2"
                                            BorderThickness="1" 
                                            CornerRadius="2">
                                        <Grid x:Uid="Grid_20" Margin="2">
                                            <Rectangle x:Uid="Rectangle_1" Stroke="{DynamicResource OverlayWindowIntBorderBrush2}" 
                                                       Fill="{DynamicResource OverlayWindowIntBorderBackground2}"
                                                       Margin="0,0,0,12" StrokeDashCap="Square">
                                                <Rectangle.StrokeDashArray>
                                                    <sys:Double x:Uid="sys:Double_1">2</sys:Double>
                                                </Rectangle.StrokeDashArray>
                                            </Rectangle>
                                            <Border x:Uid="Border_21" VerticalAlignment="Top" Height="3" 
                                                    BorderBrush="{DynamicResource OverlayWindowIntBorderBrush2}" 
                                                    Background="{DynamicResource OverlayWindowIntBorderBrush2}" 
                                                    BorderThickness="0,0,0,1"/>
                                            <Border x:Uid="Border_22" BorderBrush="{DynamicResource OverlayWindowIntBorderBrush2}" BorderThickness="1" CornerRadius="1"/>
                                        </Grid>
                                    </Border>
                                    <Border x:Uid="PART_btnDockPaneRight" Name="PART_btnDockPaneRight" Grid.Column="2" Grid.Row="1" 
                                            BorderBrush="{DynamicResource OverlayWindowIntBorderBrush}" 
                                            Background="{DynamicResource OverlayWindowIntBorderBackground}"
                                            Margin="2"
                                            BorderThickness="1" 
                                            CornerRadius="2">
                                        <Grid x:Uid="Grid_21" Margin="2">
                                            <Rectangle x:Uid="Rectangle_2" Stroke="{DynamicResource OverlayWindowIntBorderBrush2}" 
                                                       Fill="{DynamicResource OverlayWindowIntBorderBackground2}"
                                                       Margin="12,0,0,0" StrokeDashCap="Square">
                                                <Rectangle.StrokeDashArray>
                                                    <sys:Double x:Uid="sys:Double_2">2</sys:Double>
                                                </Rectangle.StrokeDashArray>
                                            </Rectangle>
                                            <Border x:Uid="Border_23" VerticalAlignment="Top" Height="3" 
                                                    BorderBrush="{DynamicResource OverlayWindowIntBorderBrush2}" 
                                                    Background="{DynamicResource OverlayWindowIntBorderBrush2}" 
                                                    BorderThickness="0,0,0,1"/>
                                            <Border x:Uid="Border_24" BorderBrush="{DynamicResource OverlayWindowIntBorderBrush2}" BorderThickness="1" CornerRadius="1"/>
                                        </Grid>
                                        
                                    </Border>
                                    <Border x:Uid="PART_btnDockPaneBottom" Name="PART_btnDockPaneBottom" Grid.Column="1" Grid.Row="2" 
                                            BorderBrush="{DynamicResource OverlayWindowIntBorderBrush}" 
                                            Background="{DynamicResource OverlayWindowIntBorderBackground}"
                                            Margin="2"
                                            BorderThickness="1" 
                                            CornerRadius="2">
                                        <Grid x:Uid="Grid_22" Margin="2">
                                            <Rectangle x:Uid="Rectangle_3" Stroke="{DynamicResource OverlayWindowIntBorderBrush2}" 
                                                       Fill="{DynamicResource OverlayWindowIntBorderBackground2}"
                                                       Margin="0,12,0,0" StrokeDashCap="Square">
                                                <Rectangle.StrokeDashArray>
                                                    <sys:Double x:Uid="sys:Double_3">2</sys:Double>
                                                </Rectangle.StrokeDashArray>
                                            </Rectangle>
                                            <Border x:Uid="Border_25" VerticalAlignment="Top" Height="3" 
                                                    BorderBrush="{DynamicResource OverlayWindowIntBorderBrush2}" 
                                                    Background="{DynamicResource OverlayWindowIntBorderBrush2}" 
                                                    BorderThickness="0,0,0,1"/>
                                            <Border x:Uid="Border_26" BorderBrush="{DynamicResource OverlayWindowIntBorderBrush2}" BorderThickness="1" CornerRadius="1"/>
                                        </Grid>
                                        
                                    </Border>
                                    <Border x:Uid="PART_btnDockPaneLeft" Name="PART_btnDockPaneLeft" Grid.Column="0" Grid.Row="1" 
                                            BorderBrush="{DynamicResource OverlayWindowIntBorderBrush}" 
                                            Background="{DynamicResource OverlayWindowIntBorderBackground}"
                                            Margin="2"
                                            BorderThickness="1" 
                                            CornerRadius="2">
                                        <Grid x:Uid="Grid_23" Margin="2">
                                            <Rectangle x:Uid="Rectangle_4" Stroke="{DynamicResource OverlayWindowIntBorderBrush2}" 
                                                       Fill="{DynamicResource OverlayWindowIntBorderBackground2}"
                                                       Margin="0,0,12,0" StrokeDashCap="Square">
                                                <Rectangle.StrokeDashArray>
                                                    <sys:Double x:Uid="sys:Double_4">2</sys:Double>
                                                </Rectangle.StrokeDashArray>
                                            </Rectangle>
                                            <Border x:Uid="Border_27" VerticalAlignment="Top" Height="3" 
                                                    BorderBrush="{DynamicResource OverlayWindowIntBorderBrush2}" 
                                                    Background="{DynamicResource OverlayWindowIntBorderBrush2}" 
                                                    BorderThickness="0,0,0,1"/>
                                            <Border x:Uid="Border_28" BorderBrush="{DynamicResource OverlayWindowIntBorderBrush2}" BorderThickness="1" CornerRadius="1"/>
                                        </Grid>
                                        
                                    </Border>
                                    <Border x:Uid="PART_btnDockPaneInto" Name="PART_btnDockPaneInto" Grid.Column="1" Grid.Row="1" 
                                            BorderBrush="{DynamicResource OverlayWindowIntBorderBrush}" 
                                            Background="{DynamicResource OverlayWindowIntBorderBackground}"
                                            Margin="2"
                                            BorderThickness="1" 
                                            CornerRadius="2">
                                        <Grid x:Uid="Grid_24" Margin="2">
                                            <Border 
													x:Uid="Border_29" BorderBrush="{DynamicResource OverlayWindowIntBorderBrush2}"
													Background="{DynamicResource OverlayWindowIntBorderBackground2}"
													BorderThickness="1" CornerRadius="1"/>
                                            <Border x:Uid="Border_30" VerticalAlignment="Top" Height="3" 
                                                    BorderBrush="{DynamicResource OverlayWindowIntBorderBrush2}"
													Background="{DynamicResource OverlayWindowIntBorderBrush2}" 
                                                    BorderThickness="0,0,0,1"/>
                                        </Grid>
                                    </Border>
                                </Grid>
                            </Grid>
                        </Canvas>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
   
    <!--DockableFloatingWindow-->
    <Style x:Uid="Style_14" x:Key="{x:Type ad:DockableFloatingWindow}" TargetType="{x:Type ad:DockableFloatingWindow}">
        <Setter x:Uid="Setter_72" Property="ResizeMode" Value="NoResize" />
        <Setter x:Uid="Setter_73" Property="WindowStyle" Value="None" />
        <Setter x:Uid="Setter_74" Property="Background" Value="{x:Null}"/>
        <Setter x:Uid="Setter_75" Property="Template">
            <Setter.Value>
                <ControlTemplate x:Uid="ControlTemplate_8" TargetType="{x:Type ad:DockableFloatingWindow}">
                    <Border x:Uid="ExtBorder" x:Name="ExtBorder"
                            Background="{DynamicResource NormalBackgroundBrush}"
                            CornerRadius="2">
                        <Grid x:Uid="Grid_25">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition x:Uid="ColumnDefinition_13" Width="5"/>
                                <ColumnDefinition x:Uid="ColumnDefinition_14" Width="*"/>
                                <ColumnDefinition x:Uid="ColumnDefinition_15" Width="5"/>
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition x:Uid="RowDefinition_12" Height="5"/>
                                <RowDefinition x:Uid="RowDefinition_13" Height="20"/>
                                <RowDefinition x:Uid="RowDefinition_14" Height="*"/>
                                <RowDefinition x:Uid="RowDefinition_15" Height="5"/>
                            </Grid.RowDefinitions>

                            <ad:Resizer x:Uid="PART_LeftAnchor" x:Name="PART_LeftAnchor" Cursor="SizeWE" VerticalAlignment="Stretch" Width="4" Grid.Column="0" Grid.Row="1" Grid.RowSpan="2"/>
                            <ad:Resizer x:Uid="PART_RightAnchor" x:Name="PART_RightAnchor" Cursor="SizeWE" VerticalAlignment="Stretch" Width="4" Grid.Column="2" Grid.Row="1" Grid.RowSpan="2"/>
                            <ad:Resizer x:Uid="PART_TopAnchor" x:Name="PART_TopAnchor" Cursor="SizeNS" HorizontalAlignment="Stretch" Height="4" Grid.Row="0" Grid.Column="1"/>
                            <ad:Resizer x:Uid="PART_BottomAnchor" x:Name="PART_BottomAnchor" Cursor="SizeNS" HorizontalAlignment="Stretch" Height="4" Grid.Row="3" Grid.Column="1"/>

                            <ad:Resizer x:Uid="PART_LeftTopAnchor" x:Name="PART_LeftTopAnchor" Cursor="SizeNWSE" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Width="4" Height="4" 
                                        Grid.Row="0" Grid.Column="0"/>
                            <ad:Resizer x:Uid="PART_LeftBottomAnchor" x:Name="PART_LeftBottomAnchor" Cursor="SizeNESW" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Width="4" Height="4" 
                                        Grid.Row="3" Grid.Column="0"/>
                            <ad:Resizer x:Uid="PART_RightTopAnchor" x:Name="PART_RightTopAnchor" Cursor="SizeNESW" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Width="4" Height="4" 
                                        Grid.Row="0" Grid.Column="2"/>
                            <ad:Resizer x:Uid="PART_RightBottomAnchor" x:Name="PART_RightBottomAnchor" Cursor="SizeNWSE" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Width="4" Height="4" 
                                        Grid.Row="3" Grid.Column="3"/>

                            <Border x:Uid="PART_MoveAnchor" x:Name="PART_MoveAnchor" Grid.Row="1" Grid.Column="1" CornerRadius="2,2,0,0" 
                                    Background="{DynamicResource NormalBackgroundBrush}">
                                <Grid x:Uid="intTitleGrid" x:Name="intTitleGrid">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition x:Uid="ColumnDefinition_16" Width="*"/>
                                        <ColumnDefinition x:Uid="ColumnDefinition_17" Width="16"/>
                                        <ColumnDefinition x:Uid="ColumnDefinition_18" Width="16"/>
                                    </Grid.ColumnDefinitions>
                                    <TextBlock x:Uid="intTitle" x:Name="intTitle" VerticalAlignment="Center" HorizontalAlignment="Stretch" Text="{TemplateBinding Title}" IsHitTestVisible="False" Margin="2,0,0,0"
                                               Foreground="{DynamicResource NormalForegroundBrush}"
                                               />
                                    <Border x:Uid="Border_31" x:Name="PART_ShowContextMenuButton" Grid.Column="1" Style="{DynamicResource PaneHeaderContextMenuCommandStyle}"
                                                    Width="15" Height="15" VerticalAlignment="Center" HorizontalAlignment="Center" Opacity="0.6">
                                        <Image x:Uid="Image_5" Source="pack://application:,,,/AvalonDock;component/resources/Images/PinMenu.png" Width="13" Height="13" VerticalAlignment="Center" HorizontalAlignment="Center" Stretch="None"/>
                                    </Border>
                                    <Button x:Uid="Button_2" x:Name="PART_CloseButton" Grid.Column="2" Style="{DynamicResource PaneHeaderCommandStyle}"
                                            Command="ad:DockablePaneCommands.Close" CommandTarget="{TemplateBinding Content}"       
                                            Width="15" Height="15" VerticalAlignment="Center" HorizontalAlignment="Center" Opacity="0.6">
                                        <Image x:Uid="Image_6" Source="pack://application:,,,/AvalonDock;component/resources/Images/PinClose.png" Width="13" Height="13" VerticalAlignment="Center" HorizontalAlignment="Center" Stretch="None"/>
                                    </Button>                                
                                </Grid>
                            </Border>
                            <Border  
                                x:Uid="Border_32" Grid.Row="2"
                                Grid.Column="1"
                                Background="{TemplateBinding Background}">
                                <ContentPresenter x:Uid="ContentPresenter_3"/>
                            </Border>
                        </Grid>                    
                    </Border>
                    <ControlTemplate.Triggers>
                        <DataTrigger 
                x:Uid="DataTrigger_5" Binding="{Binding RelativeSource={x:Static RelativeSource.Self}, Path=Content.ContainsActiveContent}" 
                            Value="True">
                            <Setter x:Uid="Setter_76" Property="Background" Value="{DynamicResource SelectedBackgroundBrush}" TargetName="PART_MoveAnchor"/>
                            <Setter x:Uid="Setter_77" Property="Foreground" Value="{DynamicResource SelectedForegroundBrush}" TargetName="intTitle"/>
                        </DataTrigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>       
    </Style>
    
    <!--DocumentFloatingWindow-->
    <Style x:Uid="Style_15" x:Key="{x:Type ad:DocumentFloatingWindow}" TargetType="{x:Type ad:DocumentFloatingWindow}">
        <Setter x:Uid="Setter_78" Property="ResizeMode" Value="NoResize" />
        <Setter x:Uid="Setter_79" Property="WindowStyle" Value="None" />
        <Setter x:Uid="Setter_80" Property="Background" Value="{x:Null}"/>
        <Setter x:Uid="Setter_81" Property="Template">
            <Setter.Value>
                <ControlTemplate x:Uid="ControlTemplate_9" TargetType="{x:Type ad:DocumentFloatingWindow}">
                    <Border x:Uid="Border_33" x:Name="ExtBorder"
                            BorderThickness="1"
                            BorderBrush="{DynamicResource NormalBorderBrush}">
                        <Grid x:Uid="Grid_26">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition x:Uid="ColumnDefinition_19" Width="5"/>
                                <ColumnDefinition x:Uid="ColumnDefinition_20" Width="*"/>
                                <ColumnDefinition x:Uid="ColumnDefinition_21" Width="5"/>
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition x:Uid="RowDefinition_16" Height="5"/>
                                <RowDefinition x:Uid="RowDefinition_17" Height="20"/>
                                <RowDefinition x:Uid="RowDefinition_18" Height="*"/>
                                <RowDefinition x:Uid="RowDefinition_19" Height="5"/>
                            </Grid.RowDefinitions>
                            
                            <Border x:Uid="Border_34" x:Name="PART_MoveAnchor" Grid.Row="0" Grid.Column="0" Grid.RowSpan="2" Grid.ColumnSpan="3"
                                    Background="{DynamicResource NormalBackgroundBrush}">
                                <Grid x:Uid="Grid_27" x:Name="intTitleGrid">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition x:Uid="ColumnDefinition_22" Width="*"/>
                                        <ColumnDefinition x:Uid="ColumnDefinition_23" Width="16"/>
                                        <ColumnDefinition x:Uid="ColumnDefinition_24" Width="16"/>
                                    </Grid.ColumnDefinitions>
                                    <TextBlock x:Uid="TextBlock_3" x:Name="intTitle" VerticalAlignment="Center" HorizontalAlignment="Stretch" Text="{TemplateBinding Title}" IsHitTestVisible="False" Margin="2,0,0,0"
                                               Foreground="{DynamicResource NormalForegroundBrush}"
                                               />
                                    <Border x:Uid="Border_35" x:Name="PART_ShowContextMenuButton" Grid.Column="1" Style="{DynamicResource PaneHeaderContextMenuCommandStyle}"
                                                    Width="15" Height="15" VerticalAlignment="Center" HorizontalAlignment="Center" Opacity="0.6">
                                        <Image x:Uid="Image_7" Source="pack://application:,,,/AvalonDock;component/resources/Images/PinMenu.png" Width="13" Height="13" VerticalAlignment="Center" HorizontalAlignment="Center" Stretch="None"/>
                                    </Border>
                                    <Button x:Uid="Button_3" x:Name="PART_CloseButton" Grid.Column="2" Style="{DynamicResource PaneHeaderCommandStyle}"
                                            Command="ad:DocumentPaneCommands.CloseThis" CommandTarget="{TemplateBinding Content}"       
                                            Width="15" Height="15" VerticalAlignment="Center" HorizontalAlignment="Center" Opacity="0.6">
                                        <Image x:Uid="Image_8" Source="pack://application:,,,/AvalonDock;component/resources/Images/PinClose.png" Width="13" Height="13" VerticalAlignment="Center" HorizontalAlignment="Center" Stretch="None"/>
                                    </Button>
                                </Grid>
                            </Border>

                            <ContentPresenter 
                                x:Uid="ContentPresenter_4" Grid.Row="2" Grid.RowSpan="2"
                                Grid.Column="0" Grid.ColumnSpan="3"
                                Margin="4"
                                Content="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=HostedPane.SelectedItem.Content}"
                                />                            
                            <Border  
                                x:Uid="intContentBorder" x:Name="intContentBorder"
                                Grid.Row="2" Grid.RowSpan="2"
                                Grid.Column="0" Grid.ColumnSpan="3"
                                Background="{TemplateBinding Background}"  
                                BorderBrush="{DynamicResource NormalBorderBrush}"
                                BorderThickness="4">
                            </Border>
                            
                            <ad:Resizer x:Uid="ad:Resizer_1" x:Name="PART_LeftAnchor" Cursor="SizeWE" VerticalAlignment="Stretch" Width="4" Grid.Column="0" Grid.Row="1" Grid.RowSpan="2"/>
                            <ad:Resizer x:Uid="ad:Resizer_2" x:Name="PART_RightAnchor" Cursor="SizeWE" VerticalAlignment="Stretch" Width="4" Grid.Column="2" Grid.Row="1" Grid.RowSpan="2"/>
                            <ad:Resizer x:Uid="ad:Resizer_3" x:Name="PART_TopAnchor" Cursor="SizeNS" HorizontalAlignment="Stretch" Height="4" Grid.Row="0" Grid.Column="1"/>
                            <ad:Resizer x:Uid="ad:Resizer_4" x:Name="PART_BottomAnchor" Cursor="SizeNS" HorizontalAlignment="Stretch" Height="4" Grid.Row="3" Grid.Column="1"/>

                            <ad:Resizer x:Uid="ad:Resizer_5" x:Name="PART_LeftTopAnchor" Cursor="SizeNWSE" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Width="4" Height="4" 
                                        Grid.Row="0" Grid.Column="0"/>
                            <ad:Resizer x:Uid="ad:Resizer_6" x:Name="PART_LeftBottomAnchor" Cursor="SizeNESW" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Width="4" Height="4" 
                                        Grid.Row="3" Grid.Column="0"/>
                            <ad:Resizer x:Uid="ad:Resizer_7" x:Name="PART_RightTopAnchor" Cursor="SizeNESW" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Width="4" Height="4" 
                                        Grid.Row="0" Grid.Column="2"/>
                            <ad:Resizer x:Uid="ad:Resizer_8" x:Name="PART_RightBottomAnchor" Cursor="SizeNWSE" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Width="4" Height="4" 
                                        Grid.Row="3" Grid.Column="3"/>
                        </Grid>
                    </Border>
                    <ControlTemplate.Triggers>
                        <DataTrigger 
                x:Uid="DataTrigger_6" Binding="{Binding RelativeSource={x:Static RelativeSource.Self}, Path=HostedPane.ContainsActiveDocument}" 
                            Value="True">
                            <Setter x:Uid="Setter_82" Property="Background" 
                                    Value="{DynamicResource SelectedBackgroundBrush}" 
                                    TargetName="PART_MoveAnchor"/>
                            <Setter x:Uid="Setter_83" Property="BorderBrush" 
                                    Value="{DynamicResource SelectedBorderBrush}" 
                                    TargetName="intContentBorder"/>
                            <Setter x:Uid="Setter_84" Property="TextBlock.Foreground" 
                                    Value="{DynamicResource SelectedForegroundBrush}" 
                                    TargetName="intTitle"/>
                            <Setter x:Uid="Setter_85" Property="BorderBrush" 
                                    Value="{DynamicResource SelectedBorderBrush}" 
                                    TargetName="ExtBorder"/>  
                        </DataTrigger>
                        <DataTrigger 
                x:Uid="DataTrigger_7" Binding="{Binding RelativeSource={x:Static RelativeSource.Self}, Path=HostedPane.ContainsActiveContent}" 
                            Value="True">
                            <Setter x:Uid="Setter_86" Property="Background" 
                                    Value="{DynamicResource SelectedBackgroundBrush}" 
                                    TargetName="PART_MoveAnchor"/>
                            <Setter x:Uid="Setter_87" Property="BorderBrush" 
                                    Value="{DynamicResource SelectedBorderBrush}" 
                                    TargetName="intContentBorder"/>
                            <Setter x:Uid="Setter_88" Property="TextBlock.Foreground" 
                                    Value="{DynamicResource SelectedForegroundBrush}" 
                                    TargetName="intTitle"/>
                            <Setter x:Uid="Setter_89" Property="BorderBrush" 
                                    Value="{DynamicResource SelectedBorderBrush}" 
                                    TargetName="ExtBorder"/>                            
                        </DataTrigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>
